package com.ningxun.rms.domain.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.ningxun.rms.common.utils.bean.BeanUtils;
import com.ningxun.rms.domain.busrequire.BusRequire;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class WechatRequireDetailVo {
    /** 需求ID */
    private Long requireId;
    /** 部门ID */
    private Long deptId;
    /** 岗位名称 */
    private String post;
    /** 课题研究目标 */
    private String content;
    /** 过需求期时间 */
    private String expirationTime;
    /** 需求状态 0生效 1失效（过期、删除、未通过审核、岗位数量不足） */
    private Long requireState;
    /** 岗位数量 */
    private Long quantity;
    /** 单位名称 */
    private String unit;
    /** 规划编制、重点课题名称 */
    private String project;
    /** 意向高校或专业 */
    private String intention;
    /** 联系人 */
    private String contact;
    /** 联系方式 */
    private String number;
    /** 备注 */
    private String remark;
    /** 创建人名称 */
    private Long recruited;
    public long getRecruited() {
        return recruited;
    }

    public void setRecruited(long recruited) {
        this.recruited = recruited;
    }

    public Long getRequireId() { return requireId; }
    public void setRequireId(Long requireId) { this.requireId = requireId; }
    public Long getDeptId() { return deptId; }
    public void setDeptId(Long deptId) { this.deptId = deptId; }
    public String getPost() { return post; }
    public void setPost(String post) { this.post = post; }
    public String getContent() { return content; }
    public void setContent(String content) { this.content = content; }
    public String getExpirationTime() { return expirationTime; }
    public void setExpirationTime(String expirationTime) { this.expirationTime = expirationTime; }
    public Long getRequireState() { return requireState; }
    public void setRequireState(Long requireState) { this.requireState = requireState; }
    public Long getQuantity() { return quantity; }
    public void setQuantity(Long quantity) { this.quantity = quantity; }
    public String getUnit() { return unit; }
    public void setUnit(String unit) { this.unit = unit; }
    public String getProject() { return project; }
    public void setProject(String project) { this.project = project; }
    public String getIntention() { return intention; }
    public void setIntention(String intention) { this.intention = intention; }
    public String getContact() { return contact; }
    public void setContact(String contact) { this.contact = contact; }
    public String getNumber() { return number; }
    public void setNumber(String number) { this.number = number; }
    public String getRemark() { return remark; }
    public void setRemark(String remark) { this.remark = remark; }
    //封装成vo，查询岗位详情
    public static WechatRequireDetailVo convertToWechatRequireVo(BusRequire item) {
        WechatRequireDetailVo vo = new WechatRequireDetailVo();
        BeanUtils.copyBeanProp(vo, item);
        vo.setRecruited(item.getRecruited() != null ? item.getRecruited() : 0L);
        return vo;
    }
}
